% Copyright (C) 2011
%                Ze Ji
% Octave code (Matlab compatible)
% 

%%
clear all

r = 0.05:0.1:0.95;

[trainlabels, traindata] = prepareRandData([100, 192], 3);
htraindata = hist(traindata', r)';
mat2libsvm(trainlabels, htraindata, 'lefthand.train');

%%
clear all
r = 0.05:0.1:0.95;
[trainlabels, traindata] = prepareRandData([100, 192], 3);
htraindata = hist(traindata', r)';
mat2libsvm(trainlabels, htraindata, 'righthand.train');

%%
clear all
r = 0.05:0.1:0.95;
[trainlabels, traindata] = prepareRandData([100, 48], 3);
htraindata = hist(traindata, r)';
mat2libsvm(trainlabels, htraindata, 'leftarm.train');

%%
clear all
r = 0.05:0.1:0.95;
[trainlabels, traindata] = prepareRandData([100, 48], 3);
htraindata = hist(traindata', r)';
mat2libsvm(trainlabels, htraindata, 'rightarm.train');

%%
clear all

r = 0.05:0.1:0.95;
[trainlabels, traindata] = prepareRandData([100, 36], 3);
htraindata = hist(traindata', r)';
mat2libsvm(trainlabels, htraindata, 'leftfoot.train');

%%
clear all
r = 0.05:0.1:0.95;
[trainlabels, traindata] = prepareRandData([100, 36], 3);
htraindata = hist(traindata', r)';
mat2libsvm(trainlabels, htraindata, 'rightfoot.train');

%%
clear all
r = 0.05:0.1:0.95;
[trainlabels, traindata] = prepareRandData([100, 144], 3);
htraindata = hist(traindata', r)';
mat2libsvm(trainlabels, htraindata, 'torso.train');

%%
clear all
r = 0.05:0.1:0.95;
[trainlabels, traindata] = prepareRandData([100, 144], 3);
htraindata = hist(traindata', r)';
mat2libsvm(trainlabels, htraindata, 'cheeks.train');
